<?php

class filesComponents extends sfComponents
{

    public function executeImage()
    {
    
    }

    public function executeThumb()
    {

    $fileId = $this->files->getId();
    $thumb = FilesPeer::retrieveByPk($fileId);
    $thumb->getUname();
    $imagesDir = Files::getPhotoDirs();
    $thumbDir = $imagesDir['tiny'];
    $this->dir = $imagesDir;
    $this->thumb =  sfConfig::get('app_gallery_dir').'/'.$thumbDir['dir'].'/'.$thumb->getUname();
    }

}

?>